<section class="content-header">
    <h1>

    </h1>
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-3 ">
            <div class="box box-solid ">
                <div class="box-header with-border ">
                    <h3 class="box-title ">文档类型</h3>
                </div>
                <div class="box-body no-padding ">
                    <ul class="nav nav-pills nav-stacked ">
                        <!--active-->
                        {volist name="file_type " id="vo " key="key "}
                        <li class="{$type==$vo.m_value?'active':''}">
                            <a data-url="{:url('/index/project/contract/index',['type'=>$vo.m_value])}" href="javascript:;" onclick="reload_tab(this)">
                                <i class="fa fa-file-text-o  "></i> {$vo.m_name}
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <!-- /.box-body -->
            </div>
        </div>
        <div class="col-xs-9">
            <div class="box-tools">
                <div class="input-group input-group-sm" style="width: 150px;">
                    <a href="{:url('/Index/Project/Contract/add')}" class="btn btn-block btn-info" data-toggle="modal" data-target="#base_contract_modal">添加项目交底资料</a>
                </div>
            </div>

            <div class="box">

                <div class="box-header">
                    <h3 class="box-title">项目交底资料列表</h3>

                    <div class="box-tools">
                        <form method="post" action="{:url('/index/project/contract/index')}" class="search_load_tab_form">
                            <div class="input-group input-group-sm" style="width: 250px;">
                                <input type="text" name="search" class="form-control pull-right" placeholder="搜索">

                                <div class="input-group-btn">
                                    <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- /.box-header -->

                <div class="box-body table-responsive no-padding">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>标号</th>
                                <th>所属项目</th>


                                <th>文件名</th>
                                <th>提交时间</th>

                                <th>提交用户</th>
                                <th>资料类型</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="data_list" id="vo" key="key"}
                            <tr>
                                <td>{$key}</td>

                                <td>{$vo.project["title"]}</td>

                                <td>{$vo.file_name}</td>

                                <td>{$vo.create_time}</td>

                                <td>{$vo.user["nickname"]}</td>
                                <td>{$contract_typea_item[$vo.mtypea]?=$contract_typea_item[$vo.mtypea]}</td>


                                <td>
                                    <a href="javascript:;" data-url="{:url('/Index/Project/Contract/del')}" param="{$vo.id}" class="btn label-danger data_del_items">删除</a>
                                    <a href="{$vo.file_path}">下载文件</a>
                                </td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>

                    <div class="col-sm-7">
                        {$page}

                    </div>
                </div </div>
            </div>
        </div>
    </div>
</section>

<div class="modal " id="base_contract_modal">
    <div class="modal-dialog ">
        <div class="modal-content "></div>
    </div>
</div>
<script src="/public/admin/js/common.js"></script>